package gcontent.entities.content.pdf;

import gcontent.entities.Content;
import gcontent.entities.content.error.ContentEx;
import gcontent.record.error.RecordEx;

public class ContentPDF extends Content {

	public static final String MIMETYPE_PDF = "application/pdf";
	
	public ContentPDF()
	{
		super();
	}
	
	public void save() throws RecordEx, ContentEx
	{		
		this.id = (Integer)this.record.execProc("PROC_CreateContentPDF", 
				  null,
				  null,								
				  this.body,
				  this.body == null? 0 : this.body.length,
				  this.last_modified,
				  this.truncated
				  );
									  								
	}
}
